<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        img {
            transform: rotate(180deg);
            /* 过渡写到本身上，做动画 */
            transition: all 0.3s;
        }
        
        img:hover {
            transform: rotate(360deg);
        }
        
        .one {
            position: relative;
            height: 50px;
            width: 300px;
            border: 1px solid black;
        }
        
        .one::after {
            content: "";
            position: absolute;
            top: 14px;
            right: 10px;
            width: 15px;
            height: 15px;
            border: 1px solid black;
            border-left: 0;
            border-bottom: 0;
            transform: rotate(135deg);
            /* 动画过渡效果 */
            transition: all 0.3s;
        }
        
        .one:hover::after {
            /* 135 + 180 = 315 */
            transform: rotate(315deg);
        }
        
        .shape {
            height: 400px;
            width: 400px;
            border: 5px solid pink;
            margin: 100px 100px;
            transition: all 0.3s;
            transform-origin: bottom left;
        }
        
        .shape:hover {
            transform: rotate(360deg);
        }
        
        .two {
            overflow: hidden;
            height: 300px;
            width: 300px;
            margin: 0 auto;
            border: 2px solid black;
        }
        
        .two::before {
            content: "转上去？";
            display: block;
            width: 100%;
            height: 100%;
            background-color: bisque;
            transform: rotate(180deg);
            transition: all 0.3s;
            transform-origin: left bottom;
        }
        
        .two:hover::before {
            transform: rotate(0deg);
        }
    </style>
</head>

<body>
    <!-- <img src="./img/logo.png" alt=""> -->
    <div class="one"></div>
    <div class="shape"></div>
    <div class="two"></div>
</body>

</html>